package com.bluebench.bigul.domain;

import java.lang.reflect.InvocationTargetException;

import com.bluebench.bigul.utility.reflection.ReflectionUtil;

public class FieldInvocation extends Invocation{	
	
	
	@Override
	public Object invoke() throws SecurityException, IllegalArgumentException,
			ClassNotFoundException, NoSuchMethodException,
			IllegalAccessException, InvocationTargetException,
			InstantiationException, NoSuchFieldException {
			
			Object returnVal =null;
		
			String field = getField();
			if(field!=null){
				returnVal = ReflectionUtil.getFieldValueFromElement(field);
			}
		
		return returnVal;
	}

}
